function OpenError()
	
	i = 0
	while true do
		i = i + 1
		Thread.Sleep(1)
		print(i)
		if i == 20 then
			IO.Set(DO_ALARM,1)
			i = 0
		end
	end

end